package com.ssl.tensquare.recruit.controller;

import com.ssl.tensquare.common.entity.Result;
import com.ssl.tensquare.common.entity.StatusCode;
import com.ssl.tensquare.recruit.service.EnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 描述：
 *
 * @author ssl
 * @create 2019/06/28 10:18
 */
@RequestMapping("enterprise")
@RestController
public class EnterpriseController {
    @Autowired
    private EnterpriseService enterpriseService;

    /**
     * 查询热门企业列表
     *
     * @return
     */
    @GetMapping("/search/hotlist")
    public Result hotList() {
        return new Result(true, StatusCode.OK, "查询成功", enterpriseService.findByIsHot());
    }
}
